﻿
function mostrarDivSearch(objImg, opcion) {
    var urlLast = "<img src='" + getUrlPortal() + "images/page-last.gif' onclick=\"javascript:mostrarDivSearch(this,'2');\" width='13px' height='21px'  />";
    var urlFirt = "<img src='" + getUrlPortal() + "images/page-first.gif' onclick=\"javascript:mostrarDivSearch(this,'1');\"  width='13px' height='21px' />";
      
    var divSearch = 'divSearch';
    var divImgOculta = 'divImgOculta';
    if (opcion == '1') {
        $('#' + divImgOculta).html(urlLast);
        $('#' + divSearch).hide();
    } else {        
        $('#' + divImgOculta).html(urlFirt);
        $('#' + divSearch).show();
    }
}